<!DOCTYPE html>
<html>
<head>
    <% include ../common/meta.ejs %>
    <% include ../common/public.ejs %>
</head>
<body>
<% include ../common/header.ejs %>

<div class="container">
    <div class="dolphin-row main page-content">
        <div class="page-header">
            <h2 class="content-title">公众号菜单</h2>
            <div class="pull-left">
                <ul class="fl">
                    <li>
                        <button class="btn btn-block btn-warning newWechatMenu">
                            <i class="fa fa-save fa-lg icon-menu"></i>
                            <span>保存菜单</span>
                        </button>
                    </li>
                </ul>
            </div>
        </div>

        <div class="dolphin-col-24">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">菜单信息</h3>
                </div>
                <table class="table table-bordered" id="menuTable">
                    <thead class="centerHeader">
                    <tr>
                        <th rowspan="2" style="width:130px;">一级菜单</th>
                        <th colspan="3">二级菜单</th>
                    </tr>
                    <tr>
                        <th style="width:130px;">菜单名称</th>
                        <th style="width:130px;">菜单类型</th>
                        <th>请求内容</th>
                    </tr>
                    </thead>
                    <tbody>
                    <% for(var i = 0; i < 3; i++){ %>
                    <% for(var j = 0; j < 5; j++){ %>
                    <tr>
                        <% if(j == 0){ %>
                        <td rowspan="5" style="vertical-align: middle;">
                            <input type="text" class="form-control" menu_level_1="<%= i %>" name="_name"/>
                        </td>
                        <% } %>
                        <td style="width:130px;">
                            <input type="text" class="form-control" menu_level_1="<%= i %>"
                                   menu_level_2="<%= j %>"
                                   name="name"/>
                        </td>
                        <td>
                            <!--<input type="text" class="form-control" menu_level_1="<%= i %>" menu_level_2="<%= j %>" name="type" />-->
                            <select class="form-control" menu_level_1="<%= i %>" menu_level_2="<%= j %>"
                                    name="type">
                                <option value="">--请选择--</option>
                                <option value="view">页面</option>
                            </select>
                        </td>
                        <td>
                            <input type="text" class="form-control" menu_level_1="<%= i %>"
                                   menu_level_2="<%= j %>"
                                   name="content"/>
                        </td>
                    </tr>
                    <% } %>
                    <% } %>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<% include ../common/footer.ejs %>
</body>
</html>
